package org.vidyakiran.app.client.view;

import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.VerticalPanel;

public class HomeView {

	private Image homeImage;

	private TextArea homeTextArea;

	private Panel mainHomePanel;

	public Panel createHomePanel() {
		mainHomePanel = new VerticalPanel();
		homeImage = new Image();
		homeTextArea = new TextArea();
		homeTextArea
				.setText("Welcome,\\n You are at Project Vidya Kiran." +
						"Vidya Kiran aims to answer 2 questions:\\n" +
						" 1. Why is it so hard for underprevilaged children to have a basic qualtity education? \\n" +
						" 2. Why is it so hard for people who want to help, to do so when opportunities exist right in their neighbourhoods?" +
						"" +
						"\\n \\t We are attempting to solve this by:\\n" +
						" 1. Create a web based system which highlights the volunteering opportunites in people's immediate neighbourhoods.\\n" +
						" 2. Creating a pan-india network of schools registered under this system.");

		mainHomePanel.add(homeImage);
		mainHomePanel.add(homeTextArea);
		return mainHomePanel;

	}

	public Image getHomeImage() {
		return homeImage;
	}

	public TextArea getHomeTextArea() {
		return homeTextArea;
	}

	public Panel getMainHomePanel() {
		return mainHomePanel;
	}
}
